import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 邓大帅
 * Date: 2022-11-16
 * Time: 11:29
 */
public class MaxNum {
    public static int twoMax(int a, int b) {
        return a > b ? a : b;
    }
    public static int threeMax(int a, int b, int c) {
        int d = twoMax(a , b);
        d = twoMax(d , c);
        return d;
    }
    public static void main(String[] args) {
        System.out.println("请输入数字：");
        Scanner input = new Scanner(System.in);
        int a = input.nextInt();
        int b = input.nextInt();
        int c = input.nextInt();
        System.out.println(twoMax(a, b));
        System.out.println(threeMax(a, b, c));
    }
}
